/*
 * @Description: 登录验证接口
 * @Author: XuYang 
 * @Date: 2019-06-09 12:45:51 
 * @Last Modified by: XuYang
 * @Last Modified time: 2019-06-10 20:54:52
 */

import { AjaxServer } from './index';

/**
 * 获取验证码
 * @param {object} params 参数
 */
export async function getCodeApi(params) {
  return AjaxServer('get', '/v1/sms', null, params);
}
/**
 * 注册接口
 * @param {*} params 
 */
export async function registerApi(params){
    return AjaxServer('post', '/v1/register', null, {}, params);
}
/**
 * 登录
 * @param {*} params 
 */
export async function loginApi(params){
    return AjaxServer('post', '/v1/login', null, {}, params);
}
/**
 * 找回密码
 * @param {*} params 
 */
export async function findPasswordApi(params){
  return AjaxServer('post', '/v1/login/findpwd', null, {}, params);

}